package random

import (
	"crypto/rand"
	"math/big"
)

func Int(min int, max int) int {
	b, _ := rand.Int(rand.Reader, big.NewInt(int64(max)))
	return min + int(b.Int64())
}

func Int64(min int64, max int64) int64 {
	b, _ := rand.Int(rand.Reader, big.NewInt(max))
	return min + b.Int64()
}
